﻿using System;

namespace STX.Service.Valid.BizUserValid
{
    public class Edit : ValidExpression<STX.Domain.BizUser>
    {
        public override void ValidEntity(ValidationResult result, Domain.BizUser entity)
        {
            NoEmpty(result, "密码", entity.Password);
            if (entity.Password != null && entity.Password.Length <= 6)
            {
                PushError(result, "密码不能小于6位");
            }
        }
    }
}
